const MAP_CONFIG = {
    key: "[填你自己的高德api key]",
    version: "2.0",
    plugins: ['AMap.Driving', 'AMap.Walking', 'AMap.Geocoder', 'AMap.Geolocation'],
    defaultCenter: [108.83165966998718, 34.126140726169226],
    defaultZoom: 15,
    mapConfig: {
        zoom: 17,
        center: [108.83165966998718, 34.126140726169226],
        viewMode: '3D'
    },
    startPoint: {
        name: "起点",
        position: [108.83165966998718, 34.126140726169226],
        icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png"
    },
    endPoints: [
        {
            name: "楼梯口1",
            position: [108.8328087467886, 34.12552737782797],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st1"  // 添加对应的楼梯ID
        },
        {
            name: "楼梯口2",
            position: [108.83241986913242, 34.125696807673485],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st2"  // 添加对应的楼梯ID
        },
        {
            name: "楼梯口3",
            position: [108.83207874840696, 34.12604696155425],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st3"  // 添加对应的楼梯ID
        },
        {
            name: "楼梯口4",
            position: [108.83169669312497, 34.12604696155425],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st4"  // 添加对应的楼梯ID
        },
        {
            name: "楼梯口5",
            position: [108.83154660001355, 34.126216390359055],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st5"  // 添加对应的楼梯ID
        },
        {
            name: "楼梯口6",
            position: [108.83127370339139,  34.12618815224921],
            icon: "https://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
            stairId: "st6"  // 添加对应的楼梯ID
        }
    ],
    polylineStyle: {
        strokeColor: "#3366FF",
        strokeWeight: 6,
        strokeOpacity: 0.8
    }
};